package demo01;

/**
 * @author JYH
 * @version 1.0
 * @date 2022/10/25 15:28
 */
public class Test {
    public static void main(String[] args) {
        Info<Integer, Integer> i1 = new Info<>(0,1);
        Integer a = i1.getA();
        Integer b = i1.getB();
        System.out.println(i1);
    }
}
class Info<A,B>{
    private A a;
    private B b;

    public Info(A a, B b) {
        this.a = a;
        this.b = b;
    }

    public Info() {
    }

    public A getA() {
        return a;
    }

    public void setA(A a) {
        this.a = a;
    }

    public B getB() {
        return b;
    }

    public void setB(B b) {
        this.b = b;
    }

    @Override
    public String toString() {
        return "Info{" +
                "a=" + a +
                ", b=" + b +
                '}';
    }
}